package org.gov.vis.gui;
import java.awt.Frame;
import java.util.ResourceBundle;

import javax.swing.JDialog;

import org.gov.vis.util.Util;

public class VisBaseDialog extends JDialog{
	
	private ResourceBundle resources=Util.getResources();
	
	public ResourceBundle getResources() {
		return resources;
	}

	public VisBaseDialog(Frame owner, String title, boolean modal){
		super(owner, title, modal);
		this.setVisible(true);
		//initGUI();
	}
	public VisBaseDialog()
	{
		
	}
	/**
	 * Method called to set the Field's Label
	 */
	protected String setFieldLabel(final String _labelName, boolean _requiredField){
		String _modfLabel = "";
		if(_requiredField){
			_modfLabel = _labelName + "*:";
		}
		else{
			_modfLabel = _labelName + ":";
		}
		
		return _modfLabel;
	}//end setFieldLabel
	
	/*private void initGUI() {
		try {
			{
				
			}
			GridBagLayout thisLayout = new GridBagLayout();
			thisLayout.rowWeights = new double[] {0.1};
			thisLayout.rowHeights = new int[] {7};
			thisLayout.columnWeights = new double[] {0.1};
			thisLayout.columnWidths = new int[] {7};
			getContentPane().setLayout(thisLayout);
			
			
			
		} catch(Exception e) {
			e.printStackTrace();
		}
	}*/

}
